package com.atguigu.oss.service;

import com.qiniu.storage.Configuration;
import com.qiniu.storage.Region;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

public interface FileService {
    //构造一个带指定 Region 对象的配置类
    Configuration cfg = new Configuration(Region.region2());

    /**
     * 文件上传至七牛云
     * @param file
     * @return
     */
    String upload(MultipartFile file);
}
